package com.ruoyi.ly.mapper;

import com.github.pagehelper.Page;
import com.ruoyi.ly.domain.MobileLink;
import com.ruoyi.ly.domain.dto.PageMobileLinkDTO;
import com.ruoyi.ly.domain.vo.MobileLinkVO;
import com.ruoyi.ly.domain.vo.PageMobileLinkVO;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
@Mapper
public interface MobileLinkMapper {
    void update(MobileLink mobileLink);
    void insert(MobileLink mobileLink);
    Page<PageMobileLinkVO> pageQuery(PageMobileLinkDTO pageMobileLinkDTO);
    @Delete("delete from mobile_link where id = #{id}")
    void delete(Long id);
    @Select("select ml.*,p.project_name from mobile_link ml left join project p on ml.project_id = p.id where ml.id = #{id}")
    MobileLinkVO selectById(Long id);
}
